﻿<Application 
    x:Class="OnlineVideos.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:Nav="clr-namespace:System.Windows.Navigation;assembly=Microsoft.Phone"
    xmlns:my="clr-namespace:System;assembly=mscorlib"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:vm="clr-namespace:OnlineVideos.Game;assembly=OnlineVideos.Game"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator"
    xmlns:myad="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    mc:Ignorable="d">

    <!--Application Resources-->

    <Application.Resources>
        <!-- Resources scoped at the Application level should be defined here. -->
        <ItemsPanelTemplate x:Key="WrapItemsTemplate">
            <toolkit:WrapPanel/>
        </ItemsPanelTemplate>

        <vm:MemoryViewModelLocator x:Key="Locator"
				d:IsDataSource="True" />

        <Nav:UriMapper x:Key="UriMapper">
            <Nav:UriMapper.UriMappings>
                <Nav:UriMapping Uri="/SearchExtras" MappedUri="/MainPage.xaml"/>
            </Nav:UriMapper.UriMappings>
        </Nav:UriMapper>

        <Style TargetType="TextBox">
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Background" Value="White"/>
        </Style>

        <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Roskell.ttf#Roskell"/>
        </Style>
        <Style x:Key="MainPanoramaTitlestyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Roskell.ttf#Roskell"/>
            <Setter Property="FontWeight" Value="Normal"/>
        </Style>

        <Style x:Key="SongsPivottyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Anna"/>

        </Style>

        <Style x:Key="MainMenuItemTextStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="45"/>
            <Setter Property="FontFamily" Value="/Fonts/Milleni Gem.ttf#MilleniGem"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
        </Style>

        <Style x:Key="UpgradeMessageStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="38"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Height" Value="240"/>
            <Setter Property="Width" Value="400"/>
        </Style>

        <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="0,12,0,12"/>
        </Style>
        <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                        <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                            <Grid>
                                <Popup x:Name="pop" Height="60" Width="480"  VerticalAlignment="Top" Opened="pop_Opened_1" IsOpen="False" HorizontalAlignment="Center">
                                    <Grid Background="{StaticResource PhoneAccentBrush}" Height="60" Width="480"  VerticalAlignment="Top" HorizontalAlignment="Center">
                                        <TextBlock Text="Successfully Shared To Blog" FontSize="20" Margin="15,25,0,0" ></TextBlock>
                                    </Grid>
                                </Popup>
                                
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                                
                                
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
        <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="45"/>
            <Setter Property="FontFamily" Value="/Fonts/Milleni Gem.ttf#MilleniGem"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
            <Setter Property="Height" Value="70"/>
        </Style>

        <Style x:Key="FormElementLabel" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Calibri"/>
        </Style>

        <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="32"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Width" Value="30"/>
            <Setter Property="Height" Value="44"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Margin" Value="16,-10,0,0"/>
        </Style>

        <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
            <Setter Property="Canvas.Left" Value="3" />
            <Setter Property="Canvas.Top" Value="5" />
            <Setter Property="Width" Value="60" />
            <Setter Property="Height" Value="60" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Fill" Value="#f26522" />
            <Setter Property="Stroke" Value="White" />
            <Setter Property="StrokeThickness" Value="3" />
            <Setter Property="IsHitTestVisible" Value="False" />
        </Style>

        <Style x:Key="DetailPagePivotTitle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="25"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Width" Value="400"></Setter>
            <Setter Property="Margin" Value="15,0,5,0"/>
        </Style>
        <Style x:Key="DetailPagePivotTitleImage" TargetType="Image">
            <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
            <Setter Property="Width" Value="36"></Setter>
            <Setter Property="Height" Value="36"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>
        <Style x:Key="CastPageHeaderText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="25"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="15,0,5,0"/>
            <Setter Property="Width" Value="400"></Setter>
            <Setter Property="TextWrapping" Value="Wrap"></Setter>
            <Setter Property="Text" Value="ADD CAST"/>
        </Style>
        <Style x:Key="Persondecriptiontitle" TargetType="TextBlock">
            <Setter Property="Text" Value="Person Description"></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
            <Setter Property="Margin" Value="15,15,0,0"></Setter>
        </Style>
        <Style x:Key="Personroletitle" TargetType="TextBlock">
            <Setter Property="Text" Value="Person Role"></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
            <Setter Property="Margin" Value="15,0,0,0"></Setter>
        </Style>
        <Style x:Key="Personnametitle" TargetType="TextBlock">
            <Setter Property="Text" Value="Person Name"></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
            <Setter Property="Margin" Value="15,-10,0,0"></Setter>
        </Style>
        <Style x:Key="logo" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Logo.png"></Setter>
        </Style>

        <Style x:Key="Title" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Title.png"></Setter>
        </Style>

        <ImageBrush x:Name="bipivot" ImageSource="Images/Pivot/Background.jpg"></ImageBrush>

        <Style x:Key="tblkcategory" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="36"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>

        </Style>

        <Style x:Key="AboutContactstyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="Height" Value="75"/>
        </Style>

        <Style x:Key="logoimg" TargetType="Image">
            <Setter Property="Margin" Value="10,0,0,0"></Setter>
        </Style>
        <Style x:Key="Languagetext" TargetType="TextBlock">
            <Setter Property="Text" Value="Subtitle:"></Setter>
        </Style>
        <my:String x:Key="BlogUserName">lartsoft@gmail.com</my:String>
        <my:String x:Key="BlogPassword">soft#306</my:String>
        <my:String x:Key="UserUploadPageName">UserUpload</my:String>
        <my:String x:Key="OnlineImagesPageName">OnlineImages</my:String>
        <my:Int32 x:Key="PeopleInsertLimit">5</my:Int32>
        <my:Int32 x:Key="ShowsInsertLimit">2</my:Int32>
        <my:String x:Key="Primaryshowsfromblog">http://wp7indiancinemashows.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="Primarypeoplefromblog">http://wp7IndiancinemaPeople.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="Secondaryshowsfromblog">http://wp7bollywoodshows.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="Secondarypeoplefromblog">http://wp7bollywoodpeople.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="RingTonePageName">RingTone</my:String>
        <my:String x:Key="DetailPageName">Details</my:String>
        <my:String x:Key="LiricsDetailPageName">ShowLiricsDetail</my:String>
        <my:String x:Key="CastDetailPageName">CastPanorama</my:String>
        <my:String x:Key="DetailPage">true</my:String>
        <my:String x:Key="FavoritePageName">MoviesFavorites</my:String>
        <my:String x:Key="PersonGalleryPopupPage">PersonGalleryPopup</my:String>
        <my:String x:Key="HistoryPageName">MoviesHistory</my:String>
        <my:String x:Key="dtailsongs">true</my:String>
        <my:String x:Key="CategoryPvt">true,genre</my:String>
        <my:String x:Key="castpnm">true</my:String>
        <my:String x:Key="dtailchapter">true</my:String>
        <my:String x:Key="AdVisible">False</my:String>
        <my:String x:Key="songs">true</my:String>
        <my:String x:Key="audios">true</my:String>
        <my:String x:Key="movies">true</my:String>
        <my:String x:Key="ratingsongs">true,rate this song,rate this movie</my:String>
        <my:String x:Key="CheckDetail">true</my:String>
        <my:String x:Key="dtailcast">true</my:String>
        <my:String x:Key="filmography">true,related</my:String>
        <my:String x:Key="CricketDetails">false</my:String>
        <my:String x:Key="dtailcheat">false</my:String>
        <my:String x:Key="pvtitmSongsTitle">songs</my:String>
        <my:String x:Key="pvtTitleOne">detail</my:String>
        <my:String x:Key="pvtTitleThree">chapters</my:String>
        <my:String x:Key="pvtTitleTwo">cast</my:String>
        <my:String x:Key="pvtFHStitlesOne">movies</my:String>
        <my:String x:Key="pvtFHStitlesTwo">songs</my:String>
        <my:String x:Key="pvtFHStitlesThree">cast</my:String>
        <my:String x:Key="pvtFHStitlesFour">audio files</my:String>
        <my:String x:Key="AudioPivotTitle">audio</my:String>
        <my:String x:Key="LiricsPivotTitle">lyrics</my:String>
        <my:String x:Key="prmh">top songs</my:String>
        <my:String x:Key="productid">f5960a5a-f3a2-e011-986b-78e7d1fa76f8</my:String>
        <my:String x:Key="misuid">68360</my:String>
        <my:String x:Key="misappid">dba0f2f6-6fad-4321-8b08-80b99ea778d1</my:String>
        <my:String x:Key="readMore">more movies</my:String>
        <my:String x:Key="mln">movie list</my:String>
        <my:String x:Key="VideoTitleName">true</my:String>
        <my:String x:Key="ContextMenu">Hide Movie,Show Movie,HIDE MOVIES</my:String>
        <my:String x:Key="ShowUpgradePage">false</my:String>
        <my:String x:Key="UpgradePageMessage">true</my:String>
        <my:String x:Key="ShowParentalControl">false</my:String>
        <ImageBrush x:Name="bi" ImageSource="Images/Panorama/Background.jpg"></ImageBrush>
        <my:Double x:Key="GameCanvasTop">50</my:Double>
        <my:String x:Key="AudioApp">true</my:String>
        <my:String x:Key="LoadAudioApp">true</my:String>
        <my:String x:Key="DownloadPeople">true</my:String>
        <my:String x:Key="DownloadShow">true</my:String>
        <my:String x:Key="RegisterDownloadAgent">true</my:String>
        <my:String x:Key="SettingsUrl">http://lartsoft.org/wp7ads/IndianCinemadefaultAdSettings.xml</my:String>
        <my:String x:Key="AdRotator">False</my:String>
        <my:String x:Key="type">Movie</my:String>
        <my:String x:Key="RatingUserName">IndianCinemaRating@gmail.com</my:String>
        <my:String x:Key="RatingPassword">lartindiancinemarating</my:String>
        <my:String x:Key="ShowsRatingBlogUrl">http://indiancinemarating.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="LinksRatingBlogUrl">http://indiancinemaratinglinks.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="ShowsRatingBlogName">indiancinemarating</my:String>
        <my:String x:Key="LinksRatingBlogName">indiancinemaratinglinks</my:String>

    </Application.Resources>


    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>